package com.jihu.sharding.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jihu.sharding.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    @Select("select u.user_id,u.username,us.uvalue ustatus from user u left join ustatus us on u.ustatus = us.ustatus")
    public List<User> queryUserStatus();
}
